vulkan: Only draw one rect
authorBenjamin Otte <otte@redhat.com>
Sun, 14 May 2023 02:12:14 +0000 (04:12 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 4 Jun 2023 17:42:01 +0000 (19:42 +0200)
commit4b2b239550ac8f042ab12a9e23dff83b623c88aa
tree089d5c4d9521532a48f0d3c2ab36ebab05a8d70a
parent23c10d434caf6326b25d5da6ce82c90bfe38b353
vulkan: Only draw one rect

Instead of emitting the render commands once per rectangle of the clip
region, just emit them once with the region's extents.

This is generally faster because it emits fewer commands to the GPU,
even though it may touch significantly more pixels.

For a proper method, we'd need to record the commands per clip rectangle
instead of emitting all of them all the time.
gsk/vulkan/gskvulkanrenderpass.c